﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JR.Trc.MessageCenter.Lib.Impls
{
    public class MessageConsumerAdapter : IMessageConsumerAdapter
    {
        private IMessageConsumer consumer = null;
        public MessageConsumerAdapter(IMessageConsumer consumer)
        {
            this.consumer = consumer;
        }
        public void Consume()
        {
            if (consumer != null)
            {
                consumer.ConsumeMsg();
            }
        }
    }
}
